{template "common/header"}

  	<div style="margin-bottom: 25px">
  		<div class="list-group">
  			<p class="list-group-item " style="background-color: #D9EDF7">按条件搜索</p>
  			<div active="list-group-item" style="border:1px solid #D9EDF7">
  				<form action="./index.php" method="get" class="form-horizontal">
  					<input type="hidden" name="c" value="site">
  					<input type="hidden" name="a" value="entry">
  					<input type="hidden" name="m" value="goouc_class">
  					<input type="hidden" name="do" value="syslog">

  					<div class="form-group col-sm-3" style="margin-top:25px" >
						<label for="inputEmail3" class="col-sm-4 control-label" >操作人名称：</label>
						<div class="col-sm-8" style="padding:0px">
							<input type="text" name="admin_username" value="{$admin_username}" class="form-control" />
						</div>
					</div>
					<div class="form-group col-sm-3" style="margin-top:25px" >
						<label for="inputEmail3" class="col-sm-4 control-label">操作类型：</label>
						<select class="col-sm-8" name="log_type" >
							<option  value="0" {if $log_type == 0}selected = "selected"{/if} class="form-control" >不限</option>
							<option  value="1" {if $log_type == 1}selected = "selected"{/if} class="form-control" >增加</option>
							<option  value="2" {if $log_type == 2}selected = "selected"{/if} class="form-control" >删除</option>
							<option  value="3" {if $log_type == 3}selected = "selected"{/if} class="form-control" >更新</option>
							<option  value="4" {if $log_type == 4}selected = "selected"{/if} class="form-control" >导入兑换币</option>
						</select>
					</div>
					<div class="form-group col-sm-3" style="margin-top:25px" >
						<label for="inputEmail3" class="col-sm-4 control-label">操作时间：</label>
						<div class="col-sm-8" style="padding:0px">
							{php echo tpl_form_field_daterange('time',array('starttime'=>($starttime ? date('Y-m-d ',$starttime):false),'endtime'=>($endtime?date('Y-m-d ',$endtime):false)))}
						</div>
					</div>
					<div class="form-group col-sm-3" style="margin-top:25px" >
						<button class="btn btn-default" style="margin-left:140px"><i class="fa fa-search"></i> 搜索</button>
					</div>
					<div style="clear:both"></div>
  				</form>
  			</div>
  		</div>
  	</div>
    <div style="margin-bottom: 25px">
      <div class="list-group">
        <p class="list-group-item " style="background-color: #D9EDF7">操作记录</p>
        <div active="list-group-item" style="border:1px solid #D9EDF7;margin-bottom: 15px">
        	<table class="table table-bordered table-hover" style="margin-top:25px;width:98%;text-align:center;table-layout: fixed;" align="center">
        		<thead >
                  <tr>
                    <!--<th>编号</th>-->
                    <th style="width: 90px;text-align:center;">操作人ID</th>
                    <th style="width: 110px;text-align:center;">操作人名称</th>
                    <th style="width: 90px;text-align:center;">操作类型</th>
                    <th style="width: 220px;text-align:center;">操作项目</th>
                    <th style="width: 380px;text-align:center;">操作内容</th>
                    <th style="width: 136px;text-align:center;">IP</th>
                    <th style="width: 190px;text-align:center;">操作时间</th>
                  </tr>
                  {loop $sysloglist $row}
                  <tr>
                  	<!--<td>{$row['id']}</td>-->
                  	<td>{$row['admin_uid']}</td>
                  	<td>{$row['admin_username']}</td>
                  	<td>{if $row['log_type'] == 1}增加{elseif $row['log_type'] == 2}删除{elseif $row['log_type'] == 3}更新{elseif $row['log_type'] == 4}导入{/if}</td>
                  	<td title="{$row['function']}" style="text-align:center;text-align:center;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{$row['function']}</td>
                  	<td title="{$row['content']}" style="text-align:center;text-align:center;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">{$row['content']}</td>
                  	<td>{$row['ip']}</td>
                  	<td>{php echo date('Y-m-d H:i:s',$row['addtime'])}</td>
                  </tr>
                  {/loop}
                </thead>
        	</table>
        </div>
        {$page}
  </div>
</div>


{template "common/footer"}